<?PHP

	class tpl_profile {
		
		public static function profile_not_found(){
			return	tpl_globals::header() .
				tpl_globals::global_styles_shared() .
				tpl_globals::inner_global_styles() .
				tpl_globals::form_styles2() .
				<<<EOV
<div class='form_container'>
	<div class='row title'>{$GLOBALS['LANG']->lang_formcommon->information}</div>
	<div class='row start'>
		{$GLOBALS['LANG']->lang_usermgmt->missing_profile}
	</div>
</div>
EOV
.
				tpl_globals::footer();
		}
		
		public static function profile($user,$profile_fields){
			
			$field_html = '';
			$row = 'even';
			foreach($profile_fields as $field_label=>$field_value){
				$field_html .= "<div class='row {$row}'><div class='label_container'>{$field_label}</div>{$field_value}<div style='clear: both'></div></div>";
				$row = ($row == 'even' ? 'odd' : 'even');
			}
			
			return	tpl_globals::header() .
				tpl_globals::global_styles_shared() .
				tpl_globals::inner_global_styles() .
				tpl_globals::form_styles2() .
				<<<EOV
<div class='form_container'>
	<div class='row title'>{$user}</div>
	{$field_html}
</div>
EOV
.
				tpl_globals::footer();
		}
		
	}

?>